package nespresso.beans;

public class Mydate {
	public String My2Date(String MyDate) {
		String rdate = new String("");
		
		rdate = rdate + MyDate.substring(8, 10) + "-" + MyDate.substring(5, 7)+ "-" + MyDate.substring(0, 4);
		return rdate;
	}
	
	public String Date2My(String MyDate) {
		String rdate = new String("");
		
		rdate = rdate + MyDate.substring(6, 10) + "-" + MyDate.substring(3, 5)+ "-" + MyDate.substring(0, 2);
		return rdate;
	}
}
